{% load form_helpers %}
<div class="card">
    <div class="card-header"><strong>Cable</strong></div>
    <div class="card-body">
        {% render_field form.status %}
        {% render_field form.type %}
        {% render_field form.label %}
        {% render_field form.color %}
        <div class="mb-10 d-flex justify-content-center">
            <label class="col-lg-3 col-form-label" for="id_length">{{ form.length.label }}</label>
            <div class="col-lg-5">
                {{ form.length }}
                {% if form.length.errors %}
                    <ul>
                        {% for error in form.length.errors %}
                            <li class="text-danger">{{ error }}</li>
                        {% endfor %}
                    </ul>
                {% endif %}
            </div>
            <div class="col-lg-4">
                {{ form.length_unit }}
                {% if form.length_unit.errors %}
                    <ul>
                        {% for error in form.length_unit.errors %}
                            <li class="text-danger">{{ error }}</li>
                        {% endfor %}
                    </ul>
                {% endif %}
            </div>
        </div>
    </div>
</div>
{% include 'inc/extras_features_edit_form_fields.html' %}
